package com.fifth.apartment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fifth.apartment.entity.Contract;
import com.fifth.apartment.vo.PageQueryVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * TODO
 *
 * @author Dao
 * @since 2024/7/4
 */
public interface ContractService extends IService<Contract> {
    Page<Contract> findpage(PageQueryVO vo);

    Contract getContract(Integer id);

    Boolean deleteById(Integer id);

    Boolean insertContract(Contract contract);

    String uploadByAliyun(MultipartFile imgFile);

    Boolean uploadById(String url, Integer id);

    String viewById(Integer id);
}
